import request from '@/axios/axios.js'

// 分页查询

// export const queryPage = (data) => {
//     return request({
//         url: '/dms/shift/queryPage',
//         method: 'post',
//         data: data
//     })
// }
export const queryPage = (data) => {
    return request({
        url: '/dms/productionShift/page',
        method: 'post',
        data: data
    })
}
export const addApi = (data) => {
    return request({
        url: '/dms/productionShift/save',
        method: 'post',
        data: data
    })
}

export const getTeamList = (data) => {
    return request({
        // url: '/dms/productionShift/getTeamList',
        url: '/dms/productionTeam/selectTeamByUser',
        method: 'get',
        data: data
    })
}

export const editApi = (data) => {
    return request({
        url: '/dms/productionShift/update',
        method: 'put',
        data: data
    })
}

// 批量导出
export const exportExcel = (data) => {
    return request({
        url: '/dms/productionShift/exportTz',
        method: 'post',
        responseType: 'blob',
        data,
    })
}
export const getType = (data) => {
    return request({
        url: 'dms/shutdownCategory/getShutdownCategoryList',
        method: 'get',
        data: data
    })
}